package com.prs.crm.domain.sys;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 表单属性
 * @author prs.chenzhi
 *
 */
@Entity
@Table(name="sys_formfield")
public class FormField extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	private Form form;
	
	private String name;
	
	private Integer sequence;
	
	/**
	 * 属性
	 */
	private String property;
	/**
	 * 查询属性
	 */
	private String queryProperty;
	
	/**
	 * 类型
	 */
	private String type;
	
	private Integer flag;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setQueryProperty(String queryProperty) {
		this.queryProperty = queryProperty;
	}

	public String getQueryProperty() {
		return queryProperty;
	}



	public void setForm(Form form) {
		this.form = form;
	}

	public Form getForm() {
		return form;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getProperty() {
		return property;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}


	
	

}
